<template>
  <div class="execution">
    <basic-container>
      <avue-form v-model="formData" :option="formOption"
                 @reset-change="emptytChange"
                 @submit="gen"
      ></avue-form>
    </basic-container>
  </div>
</template>

<script>
  import { genAppSkeleton } from '@/api/gen/gen'
  import { formOption } from '@/const/crud/gen-app-skeleton'
  import { mapGetters } from 'vuex'
  export default {
    name: 'GenAppSkeleton',
    data() {
      return {
        formData: {
          pkgName:'com.yskj.gateway',
          appName:'mic-yskj-gateway',
          serverName:'Gateway',
          discoveryType:0,
          buildType:0,
          enableCache:0,
          enableWebfluxClientInvoke:1,
          enableDynamicDataSource:0,
          mapperScan:'com.yskj.gateway',
          enableAuditLog:1,
          enableConfigClient:0,
          enableSequence:1,
          enableSentinel:0
        },
        formOption: formOption
      }
    },
    created() {
    },
    computed: {

    },
    mounted: function() { },
    methods: {
      gen(form, done) {
        genAppSkeleton(this.formData).then(() => {
          this.box = false
          done()
        }).catch(function(err) {
          done()
        })
      },
    }
  }
</script>

<style lang="scss" scoped>
</style>
